#include <iostream>
#include <cstdio>
#include <cstring>

using namespace std;

int a[1025];

int f(int x){
    
        int num = 1;
        for(int i = 1; i <= x/2; i++){
            num += f(i);
        }
        a[x] = num;
        return num;
}

int main(){
    memset(a, 0, sizeof(a));
    int n;
    cin >> n;
    a[1] = 1;
    cout << f(n);
    return 0;
}